package com.itheima.TestBreeder;

import java.io.FileReader;

public class Test {
    public static void main(String[] args) {
        //创建饲养员类：
        Breeder breeder = new Breeder();

        Animal animal = new Dog(2);
        breeder.breed(animal);
        //
        /*Dog dog = (Dog) animal;
        dog.swimming();*/
        System.out.println("----------------");


        //青蛙
        Animal animal1 = new Frog(3);
        breeder.breed(animal1);
        /*Frog frog = (Frog) animal1;
        frog.swimming();*/
        System.out.println("----------------------");

        breeder.breed(new Sheep());
    }

}
